/*
 * @Description:
 * @Version: 2.0
 * @Autor: zss
 * @Date: 2025-01-08 16:22:38
 * @LastEditors: zss
 * @LastEditTime: 2025-03-04 11:11:42
 */
import { T_srv, Tsrv, ifs, ts, tvs, vue } from '@/services';
import { I_cmd, T_cmd } from './command';
import { N_FeibaRSet } from './type';

const baseSettings = (): N_FeibaRSet.BaseSettings => ({
  rotationArcTeeth: {
    label: '设定转动弧度齿数',
    code: 'my201',
    value: 0
  },
  reversalInterval: {
    label: '换向间隔（ms）',
    code: 'my202',
    value: 0
  },
  rotationArcTime: {
    label: '设定转动弧度时间（ms）',
    code: 'my163',
    value: 0
  },
  rotationDelay: {
    label: '转动延时启动时间（ms）',
    code: 'my3848',
    value: 0
  }
});

const tankSettings = (): N_FeibaRSet.TankConfig[] => [
  {
    id: 'tank11',
    name: '硫酸阳极化11槽',
    settings: {
      teethCount: {
        label: '计齿数',
        code: 'my200',
        value: 0
      },
      timingSetting: {
        label: '计时设定（ms）',
        code: 'my169',
        value: 0
      }
    }
  },
  {
    id: 'tank12',
    name: '硫酸阳极化12槽',
    settings: {
      teethCount: {
        label: '计齿数',
        code: 'my3849',
        value: 0
      },
      timingSetting: {
        label: '计时设定（ms）',
        code: 'my170',
        value: 0
      }
    }
  },
  {
    id: 'tank15',
    name: '铬酸阳极化15槽',
    settings: {
      teethCount: {
        label: '计齿数',
        code: 'my3850',
        value: 0
      },
      timingSetting: {
        label: '计时设定（ms）',
        code: 'my171',
        value: 0
      }
    }
  }
];

export {
  I_cmd,
  N_FeibaRSet,
  T_cmd,
  T_srv,
  Tsrv,
  baseSettings,
  ifs,
  tankSettings,
  ts,
  tvs,
  vue
};
